package com.dgt.trade.service.impl;

import com.dgt.trade.dao.UserBalanceDao;
import com.dgt.trade.entitys.UserBalance;
import com.dgt.trade.service.UserBalanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserBalanceServiceImpl implements UserBalanceService {

    @Autowired
    private UserBalanceDao userBalanceDao;

    @Override
    public List<UserBalance> getUserBalanceById(int id,String data_type) {
        return userBalanceDao.getUserBalanceById(id,data_type);
    }

    @Override
    public int insert(UserBalance record) {
        return userBalanceDao.insert(record);
    }

}
